﻿<BaseUI:UserControlBase
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:BaseUI="clr-namespace:Silverlight.Weblog.Client.Default.Widgets.BaseUI"
	mc:Ignorable="d"
	xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.SearchSiderbarWidgetViewModelSampleData"
	xmlns:Commands="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"
	xmlns:Commands1="clr-namespace:Silverlight.Weblog.Client.DAL.Commands;assembly=Silverlight.Weblog.Client.DAL" xmlns:Behaviours="clr-namespace:Silverlight.Weblog.Client.DAL.Behaviours;assembly=Silverlight.Weblog.Client.DAL" x:Class="Silverlight.Weblog.Client.Default.Widgets.SearchSiderbarWidget"
	d:DesignWidth="200" d:DesignHeight="22" Height="22">

	<BaseUI:UserControlBase.Resources>
		<SampleData:SearchSiderbarWidgetViewModelSampleData x:Key="SearchSiderbarWidgetViewModelSampleData" d:IsDataSource="True"/>
	</BaseUI:UserControlBase.Resources>

	<Grid x:Name="LayoutRoot" d:DataContext="{Binding Source={StaticResource SearchSiderbarWidgetViewModelSampleData}}">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="115"/>
			<ColumnDefinition Width="60"/>
		</Grid.ColumnDefinitions>
        <Button Content="Search" Grid.Column="1" FontSize="13.333" FontFamily="Trebuchet MS" 
                Commands:Click.Command="{Binding SearchAction}"/>  
        <TextBox Margin="5,0" FontSize="13.333" FontFamily="Arial" Text="{Binding SearchTerm, Mode=TwoWay}"
                Commands1:EnterKeyPressed.Command="{Binding SearchAction}" HorizontalContentAlignment="Stretch"
                 Behaviours:NavigationKeys.HandleNavigationKeyPresses="True"/>
	</Grid>
</BaseUI:UserControlBase>